-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(BEDS-295) implement automated api doc generation #748
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
backend/pkg/api/handlers/public.go
Outdated
// PublicPostValidatorDashboards godoc | ||
// | ||
// @Description Create a new validator dashboard. **Note**: New dashboards will automatically have a default group created. | ||
// @Security ApiKeyInHeader || ApiKeyInQuery | ||
// @Tags Validator Dashboards | ||
// @Accept json | ||
// @Produce json | ||
// @Param request body handlers.PublicPostValidatorDashboards.request true "`name`: Specify the name of the dashboard.<br>`network`: Specify the network for the dashboard. Possible options are:<ul><li>`ethereum`</li><li>`gnosis`</li></ul>" | ||
// @Success 201 {object} types.PostValidatorDashboardsResponse | ||
// @Failure 400 {object} types.ApiErrorResponse | ||
// @Failure 409 {object} types.ApiErrorResponse "Conflict. The request could not be performed by the server because the authenticated user has already reached their dashboard limit." | ||
// @Router /validator-dashboards [post] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be cool if there was a way to even generate stubs of these. Like at least the route, return objects etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
best we can get is prob copilot auto completion 🤷
Deploying beaconchain with Cloudflare Pages
|
# Conflicts: # backend/pkg/api/handlers/public.go
# Conflicts: # backend/pkg/api/handlers/public.go
# Conflicts: # backend/cmd/main.go # backend/go.mod
No description provided.